package com.fuxi.cloud.common.vo;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;

import java.io.Serializable;

/**
 * JmDictModel
 *
 * @Author: 扫地僧
 * @CreateTime: 2021-05-03
 */

@JsonIgnoreProperties(
        ignoreUnknown = true
)
public class JmDictModel implements Serializable {
    private static final long serialVersionUID = 1L;
    private String value;
    private String text;

    public JmDictModel() {
    }

    public JmDictModel(String value, String text) {
        this.value = value;
        this.text = text;
    }

    public String getTitle() {
        return this.text;
    }

    public String getValue() {
        return this.value;
    }

    public String getText() {
        return this.text;
    }

    public JmDictModel setValue(String value) {
        this.value = value;
        return this;
    }

    public JmDictModel setText(String text) {
        this.text = text;
        return this;
    }

    @Override
    public String toString() {
        return "JmDictModel(value=" + this.getValue() + ", text=" + this.getText() + ")";
    }

    @Override
    public boolean equals(Object o) {
        if (o == this) {
            return true;
        } else if (!(o instanceof JmDictModel)) {
            return false;
        } else {
            JmDictModel var2 = (JmDictModel)o;
            if (!var2.canEqual(this)) {
                return false;
            } else {
                String var3 = this.getValue();
                String var4 = var2.getValue();
                if (var3 == null) {
                    if (var4 != null) {
                        return false;
                    }
                } else if (!var3.equals(var4)) {
                    return false;
                }

                String var5 = this.getText();
                String var6 = var2.getText();
                if (var5 == null) {
                    if (var6 != null) {
                        return false;
                    }
                } else if (!var5.equals(var6)) {
                    return false;
                }

                return true;
            }
        }
    }

    protected boolean canEqual(Object other) {
        return other instanceof JmDictModel;
    }

    @Override
    public int hashCode() {
        boolean var1 = true;
        byte var2 = 1;
        String var3 = this.getValue();
        int var5 = var2 * 59 + (var3 == null ? 43 : var3.hashCode());
        String var4 = this.getText();
        var5 = var5 * 59 + (var4 == null ? 43 : var4.hashCode());
        return var5;
    }
}

